package com.example.day17;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author Lenovo
 */
public class FileOutputStreamDemo02 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("myByteStream\\fos.txt");
        byte[] bys = "abcde".getBytes();
        fos.write(bys,1,3);
        fos.close();
    }
}
